#include "s3c2440.h"
#include "lcd.h"

void delay(u32 cnt)
{
    while (cnt--);
}

void test(void)
{
    u32 x;
    
    lcd_init();    
    
    lcd_set_pixel(0,0,0xffffff);
    lcd_set_pixel(1,1,0xff00ff);
    lcd_draw_hline(10, 100, 50, 0xff0000);
    lcd_draw_vline(0, LCD_WIDTH - 1, 300, 0xffffff);
    lcd_draw_rect(0, 0, LCD_WIDTH - 1, LCD_HEIGHT - 1, 0xffff00);    
    
    for (x = 0; x < 256 + 10; x++)
    {
        lcd_set_pixel(x + 10, 150, (x << 16));
        lcd_set_pixel(x + 10, 200, (x << 8));
        lcd_set_pixel(x + 10, 250, (x << 0));
    }
    
    while (1);
}

int main(void)
{
    test();

    return 0;
}
